package view.GUI.adminView.coreData.people.person;

import javafx.stage.Stage;
import enums.GUIText;
import view.GUI.mainView.MainView;


public final class NewPersonView extends PersonView{
	
	public NewPersonView(MainView instance) {
		super(false, instance, GUIText.NEWPERSON);
		try {
			start(new Stage());
		} catch (Exception e) {
			log.error(e.getMessage());
			e.printStackTrace();
		}
	}
	
	@Override
	protected boolean save(){
		return gridNewPerson.getPerson().writeToDB();
	}

}
